/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by:   焦质晔
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 工具查询
export const getToolMainPages = params => axios.get(`${SERVER.TOOLMANAGEMENT}/fileMaintenance/search`, {
  params
});

// 新增工具
export const addToolMainPage = params => axios.post(`${SERVER.TOOLMANAGEMENT}/fileMaintenance/save`, params);

// 修改工具
export const updateToolMainPage = params => axios.post(`${SERVER.TOOLMANAGEMENT}/fileMaintenance/save`, params);

// 检定记录查询
export const getRecords = params => axios.get(`${SERVER.TOOLMANAGEMENT}/fileMaintenance/recordSearch`, {
  params
});

// 查找车系列表
export const querySaleTypeList = params => axios.get(`${SERVER.TOOLMANAGEMENT}/fileMaintenance/querySaleTypeList`, {
  params
});

// 检定工具
export const checkToolByIdToBackGround = params => axios.post(`${SERVER.TOOLMANAGEMENT}/fileMaintenance/checkTool`, params);

// 保存按钮操作
export const saveDocimasyRecord = params => axios.post(`${SERVER.TOOLMANAGEMENT}/fileMaintenance/saveDocimasyRecord`, params);

// 上传检定附件
export const uploadCheckFile = params => axios.post(`${SERVER.TOOLMANAGEMENT}/fileMaintenance/uploadCheckFile`, params);
